package com.qk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qk.dto.ClueQueryDTO;
import com.qk.entity.Clue;
import com.qk.vo.ClueListVO;
import com.qk.vo.OverviewVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 28188
 */
@Mapper
public interface ClueMapper extends BaseMapper<Clue> {

    Page<ClueListVO> listClues(Page<ClueListVO> clues, ClueQueryDTO clueQueryDTO);

    Clue getClueById(Integer id);

    OverviewVO getClueOverviewData();

    @Select("select status from clue where id = #{key}")
    Integer selectStateById(String key);
}
